setTimeout(_=>console.log(1))
new Promise(resolve=>{
    resolve()
    console.log(2)
}
).then(
    _=>{
        console.log(3);
    }
)
console.log(4);